﻿using Commons.Enums;
using DomainCommons.Models;
using EntityModels.E02.Identities;
using EntityModels.E03.Photographs;

namespace EntityModels.E01.Systems
{
    public class Notification:BaseEntity<int>
    {
        /// <summary>
        /// 接收者
        /// </summary>
        public Guid RecipientId { get; set; }
        public AppUser Recipient { get; set; }
        /// <summary>
        /// 通知内容
        /// </summary>
        public string? Content { get; set; }
        public NotificationTypeEnum NotificationType { get; set; }
        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsRead { get; set; }
        /// <summary>
        /// 触发者
        /// </summary>
        public Guid SenderId { get; set; }
        public AppUser? Sender { get; set; }
        /// <summary>
        /// 关联作品(可选)
        /// </summary>
        public Guid? PhotographId { get; set; }
        public Photograph? Photograph { get; set; }

    }
}
